﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace MusicService
{
    [ServiceContract]
    interface IRoleService
    {
        [OperationContract]
        bool addRole(string roleName);

        [OperationContract]
        bool removeRole(int roleID);

        [OperationContract]
        bool updateRole(int roleID, string roleName);

        [OperationContract]
        List<Role> getAllRole();

        [OperationContract]
        Role getRoleByName(string roleName);
    }
}
